﻿using System.ComponentModel.DataAnnotations;

namespace Tender.Tool.Server.Model
{
    public class UserModel
    {
        [Required(ErrorMessage = "用户名不能为空")]
        public string? UserName { get; set; }

        [Range(1, 120, ErrorMessage = "年龄必须在1到120岁之间")]
        public int Age { get; set; }
    }
}
